import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from "./router/index.js";
import './styles_web/index.scss'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import request from './util/request'

const pinia = createPinia()

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.config.globalProperties.request = request
app.use(router)
app.use(pinia)
app.use(ElementPlus,{
    locale: zhCn
})
app.mount('#app')
